package pl.pkolodziej.platform.service.news;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import pl.pkolodziej.platform.dao.news.NewsDAO;
import pl.pkolodziej.platform.vo.news.News;

@Service
public class NewsServiceImpl implements NewsService {

	@Autowired
	public NewsDAO newsDAO;
	
	@Transactional(readOnly=true)
	public List<News> listNews() {
		return newsDAO.listNews();
	}

}
